<?php
	$listNewscatHome = $this->requestAction('/comment/listNewscatHome');
	$Company = $this->requestAction("/company/index_home");
	
?>
<div class="content_header">
	<div class="body_header" style="background: url('<?php echo DOMAIN;?>/<?php echo $Company[0]['Company']['images'];?>') no-repeat;">
		<div class="seach_header">
			<form id="form1" name="form1" method="post" action="<?php echo DOMAIN;?>/tim-kiem-sp.html" class="top_search">
				<label>
					<input type="text" name="txt_search" placeholder=" Từ khóa" required="" class="txt_search_header">
				</label>
				<label>
					<input type="submit" name="Submit" value="" class="sb_search">
				</label>
			</form>
		</div>
	</div><!--End .body_header--->
	<div class="menu_header">
		<ul id="nav_hr" style="">
			<li><a href="<?php echo DOMAIN?>" class="a_menu_1">Trang chủ</a></li>			
			<li><a href="<?php echo DOMAIN;?>/gioi-thieu.html" class="a_menu_1">Giới thiệu</a></li>
			<li><a href="#" class="a_menu_1">Tin tức</a>
				<ul>
					<?php 
						foreach($listNewscatHome as $listNewscatHome){
					?>
						<li><?php echo $this->Html->link($listNewscatHome['Newscat']['name'], array('controller' => 'news','action'=>'listN',$listNewscatHome['Newscat']['id'],$listNewscatHome['Newscat']['alias'].'.html'), array('escape' => false,'class'=>'a_menu_2','style'=>''));?></li>
					<?php }?>
				</ul>
			</li>
			<li><a href="<?php echo DOMAIN;?>/chinh-sach.html" class="a_menu_1">Chính sách</a>
				<ul>
					<li><a href="<?php echo DOMAIN;?>/bao-gia.html" class="a_menu_2">Báo giá</a></li>
				</ul>
			</li>
			<li><a href="<?php echo DOMAIN;?>/lien-he.html" class="a_menu_1">Liên hệ</a>
				<ul>
					<li><a href="<?php echo DOMAIN;?>/ban-do.html" class="a_menu_2">Bản đồ</a></li>
				</ul>
			</li>
		</ul>
	</div><!--End -Tôi-.menu_header-->
	
	
	
</div><!--End .content_header-->














<?php
if(1==2){
	$listProduccat = $this->requestAction('/comment/listProduccat');
	$listNewscatHome = $this->requestAction('/comment/listNewscatHome');
	$control=$this->params['controller'];
?>
<div class="header">
	<div class="left_header">
		<img src="<?php echo DOMAIN;?>/images/logo.png">
	</div><!--End .left_header-->
	
	<div class="right_header">
		<div class="div_top_menu">
			<a href="<?php echo DOMAIN;?>" class="a_top_menu">Trang chủ</a>
			<a href="<?php echo DOMAIN;?>/gioi-thieu.html" class="a_top_menu">Giới thiệu</a>
			<a href="<?php echo DOMAIN;?>/ban-do.html" class="a_top_menu">Bản đồ</a>
			<a href="<?php echo DOMAIN;?>/lien-he.html" class="a_top_menu">Liên hệ</a>
		</div>
	</div><!--End .right_header-->
</div><!---End .header--><div class="clear"></div>

<div class="menu">
	<div class="top_menu">
		<ul class="ul_menu" id="nav_hr">
			<li><a href="<?php echo DOMAIN;?>" <?php if($control == 'home') { ?> class="active" <?php }?>>Trang chủ</a></li>
				<li class="li_dot"></li>
			<li><a href="<?php echo DOMAIN;?>/gioi-thieu.html" <?php if($control == 'introducts') { ?> class="active" <?php }?>>Giới thiệu</a></li>
				<li class="li_dot"></li>
			<li><a href="" <?php if($control == 'news') { ?> class="active" <?php }?>>Tin tức</a>
				<ul>
				<?php 
					foreach($listNewscatHome as $listNewscatHome){
				?>
					<li><?php echo $this->Html->link($listNewscatHome['Newscat']['name'], array('controller' => 'news','action'=>'listN',$listNewscatHome['Newscat']['id'],$listNewscatHome['Newscat']['alias'].'.html'));?></li>
				<?php }?>
				</ul>
			</li>
				<li class="li_dot"></li>
			<li><a href="<?php echo DOMAIN;?>/ban-do.html" <?php if($control == 'maps') { ?> class="active" <?php }?>>Bản đồ</a></li>
				<li class="li_dot"></li>
			<li><a href="<?php echo DOMAIN;?>/bao-gia.html" <?php if($control == 'prices') { ?> class="active" <?php }?>>Báo giá</a></li>
				<li class="li_dot"></li>					
			<li><a href="<?php echo DOMAIN;?>/chinh-sach.html" <?php if($control == 'policies') { ?> class="active" <?php }?>>Chính sách</a></li>
				<li class="li_dot"></li>					
			<li><a href="<?php echo DOMAIN;?>/lien-he.html" <?php if($control == 'contacts') { ?> class="active" <?php }?>>Liên hệ</a></li>
			
		</ul>
	</div><!--End .top_menu-->
	<div class="bottom_menu">
	</div><!---End .bottom_menu-->
</div><!--End .menu--><div class="clear"></div>
<?php } ?>